﻿
//Author: 张亚涛
//createtime:2011-10-13 10:31:29
//Description: 

using System;
using System.Data;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Model
{
    public class Communty
    {
        public Communty()
        { }
        public Communty(IDataReader reader)
        {
            _communtyID = long.Parse(reader["CommuntyID"].ToString());
            if (reader["CommuntyName"] != DBNull.Value)
            {
                _communtyName = reader["CommuntyName"].ToString();
            }
            if (reader["AreaNumber"] != DBNull.Value)
            {
                _areaNumber = reader["AreaNumber"].ToString();
            }
        }

        #region 数据库字段
        private long _communtyID;
        private string _communtyName;
        private string _areaNumber;
        #endregion

        #region 字段属性
        /// <summary>
        /// 社区ID
        /// </summary>
        public long CommuntyID
        {
            set { _communtyID = value; }
            get { return _communtyID; }
        }
        /// <summary>
        /// 社区名称
        /// </summary>
        public string CommuntyName
        {
            set { _communtyName = value; }
            get { return _communtyName; }
        }
        /// <summary>
        /// 地区
        /// </summary>
        public string AreaNumber
        {
            set { _areaNumber = value; }
            get { return _areaNumber; }
        }
        #endregion
    }
}